import request from '@/utils/request'

let WelfareApi = {
  getList(data, errorback) {
    return request._post('/shop/welfare.welfare/index', data, errorback);
  },
  getMonth(data, errorback) {
    return request._post('/shop/welfare.welfare/get_month', data, errorback);
  },
  getWelfare(data, errorback) {
    return request._post('/shop/welfare.welfare/welfare', data, errorback);
  },
  addWelfare(data, errorback) {
    return request._post('/shop/welfare.welfare/add', data, errorback);
  },
  editWelfare(data, errorback) {
    return request._get('/shop/welfare.welfare/edit', data, errorback);
  },
  ToeditWelfare(data, errorback) {
    return request._post('/shop/welfare.welfare/edit', data, errorback);
  },
  deleteWel(data, errorback) {
    return request._post('/shop/welfare.welfare/delete', data, errorback);
  },
  deleteW(data, errorback) {
    return request._post('/shop/welfare.welfare/delete_w', data, errorback);
  },
  writeOff(data, errorback) {
    return request._get('/shop/welfare.welfare/write_off', data, errorback);
  },
  toWriteOff(data, errorback) {
    return request._post('/shop/welfare.welfare/write_off', data, errorback);
  },
  getListCount(data, errorback){
    return request._post('/shop/welfare.welfare/get_count', data, errorback);
  },
  push(data, errorback){
    return request._post('/shop/welfare.welfare/push', data, errorback);
  },

}
export default WelfareApi;
